package com.dili.dd.gpi.service;

import com.dili.dd.gpi.domain.EventParam;
import com.dili.dd.gpi.util.spring.DataSourceLookupKey;
import com.dili.dd.gpi.util.spring.RequireDataSource;

import java.util.List;

/**
 * Created by 思思君 on 2015/10/20.
 */
public interface DmaEventParamService
{
    @RequireDataSource(key = DataSourceLookupKey.DMA_DATASOURCE)
    int createEevntParam(EventParam eventParam);

    @RequireDataSource(key = DataSourceLookupKey.DMA_DATASOURCE)
    List<EventParam> getEventParamsByEevntId(String eventId);

    @RequireDataSource(key = DataSourceLookupKey.DMA_DATASOURCE)
    int deleteEventParamById(Integer id);

    @RequireDataSource(key = DataSourceLookupKey.DMA_DATASOURCE)
    int updateEventParam(EventParam eventParam);

    @RequireDataSource(key = DataSourceLookupKey.DMA_DATASOURCE)
    List<EventParam> getEventParamByName(String paramName, String eventId);

    @RequireDataSource(key = DataSourceLookupKey.DMA_DATASOURCE)
    EventParam getEventParamById(Integer id);
}
